package com.lanqiao.setTest;

import java.util.HashSet;
import java.util.Set;

public class TestHashSet {

	public static void main(String[] args) {
		test();
	}

	private static void test() {
		Set nameSet = new HashSet<>();
		nameSet.add("王云");
		nameSet.add("刘静涛");
		nameSet.add("南天华");
		nameSet.add("雷静");
		nameSet.add("王云");
		nameSet.add(null);
		for (Object object : nameSet) {
			System.out.println(object);
		}
		
	}
}
